<?php

error_reporting(E_ALL);
ini_set('display_errors','On');
header('Content-type: text/plain;charset=utf-8');

require_once 'init.inc.php';
define('MICROTIME_START',microtime(TRUE));
$rows = $db->select('*')
						->from('lots_of_rows')
						->where(array('id < '=> 10)) // 
						->qcache('simple.lots_of_rows') // query generation cache
						->cacheStorage('memory_if_possible')
						->cachedExecute() // executing with result cache
						->limit(0,3)
						//->order('primary','DESC')
						->fetchRowset()
				;
var_dump($rows);
var_dump(microtime(TRUE)-MICROTIME_START);
